class MyArray<T> {
    public Object[] array = new Object[10];
    //public T[] array = new T[10];
    //public T[] array = (T[])new Object[10];

    public void setValue(int pos,T val) {
        array[pos] = val;
    }

    public  T getValue(int pos) {
        return (T) array[pos];
    }
}
public class test {
    public static void main(String[] args) {

    }
}
